package com.m3839.sdk.pay.ui.controller;

import android.app.Activity;

import com.m3839.sdk.pay.bean.PayConfig;
import com.m3839.sdk.pay.bean.PayInfo;
import com.m3839.sdk.pay.bean.PayLimit;
import com.m3839.sdk.pay.bean.PayResult;
import com.m3839.sdk.pay.task.PayTask;

/**
 * @author ChenBaoyang
 * @description: IPayUiController
 * @date 2021/12/8 20:09
 */
public interface IPayUiController {

    /**
     * 显示支付下单界面
     *
     * @param activity
     * @param payTask
     * @param payInfo
     * @param config
     */
    void showPayDialog(Activity activity, PayTask payTask, PayInfo payInfo, PayConfig config);


    /**
     * 显示支付结果页面
     *
     * @param activity
     * @param payTask
     * @param config
     * @param result
     */
    void showPayResultDialog(Activity activity, PayTask payTask, PayConfig config, PayResult result);

    /**
     * 显示支付限额页面
     *
     * @param activity
     * @param payTask
     * @param payInfo
     * @param payLimit
     */
    void showPayLimitDialog(Activity activity, PayTask payTask, PayLimit payLimit, PayInfo payInfo);

    /**
     * 显示重新查询订单页面
     * @param activity
     * @param payTask
     * @param payResult
     */
    void showRetryQueryPayOrder(Activity activity,PayTask payTask, PayResult payResult);

}
